﻿using System;

namespace Spilt
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] array = { 5, 6, 7, 8, 5, 1, 2 };
            int sum = 0;

            foreach (int a in array)
            {
                sum += a;
            }
            Console.WriteLine("数组array的和为{0}", sum);

            Console.WriteLine("请输入一个字符串：");
            string str = Console.ReadLine();
            char[] cut = {'我'};
            string[] pull = str.Split(cut);
        }
    }
}
